package cn.edu.zjut.action;

import cn.edu.zjut.po.Item;
import cn.edu.zjut.po.ItemBasic;
import cn.edu.zjut.service.ItemService;

import java.util.List;

/**
 * @author XiaoFeng
 * @version 1.0
 * @Description Create by 2021/10/27 19:13
 */

public class ItemAction {
    public List items;

    public List getItems() {
        return items;
    }
    public void setItems(List items) {
        this.items = items;
    }

    public String findItems() {
        ItemService itemServ = new ItemService();
        items=itemServ.findByHql();
        System.out.println(items.size());
        System.out.println("Item Action executed!");
        return "success";
    }
}
